package com.smag.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.smag.common.core.domain.entity.FarmArticle;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 文章表(FarmArticle)表数据库访问层
 *
 * @author makejava
 * @since 2023-04-08 21:00:35
 */
@Mapper
public interface FarmArticleMapper extends BaseMapper<FarmArticle> {


    int updateArticleAvatar(@Param("articleId") Long articleId, @Param("avatar") String avatar);

    Long selectArticleIdByTittleAndSummary(@Param("title")String title, @Param("summary")String summary);
}

